home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1986-10-07 | 504 b | 22 lines |
- /* Program 13 */
- /*
- Goal to enter is on page 51 of the manual.
- Other goals to try are on pages 52-53.
- */
-
- domains
- title,author = symbol
- pages = integer
- publication = book(title,pages)
-
- predicates
- written_by(author,publication)
- long_novel(publication)
-
- clauses
- written_by(fleming,book("DR NO",210)).
- written_by(melville,book("MOBY DICK",600)).
- long_novel(book(Title,Length)):-
- written_by(_,book(Title,Length)),
- Length>300.